const app = getApp()
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    newsData: {
      type: Object,
      value: {}
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    imgUrl: app.globalData.imgUrl,
    uploadUrl: wx.getStorageSync('uploadUrl'),
  },

  /**
   * 组件的方法列表
   */
  methods: {
    toSto: function(e) {
      var id = e.currentTarget.dataset.id
      console.log(e)
      wx.navigateTo({
        url: '/pages/store/detail?id=' + id,
      })
    },
  }
})
